* {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    color: grey;
    text-decoration: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: unset;
    border: none;
    line-height: 1.2;
    outline: none;
}

body {
    margin-left: auto;
    margin-right: auto;
    width: 1500px;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

button {
    border: 2px solid grey;
    padding: .5rem;
    margin-top: .5rem;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition: .1s;
}

button:hover {
    color: white;
    background-color: grey;
}

.articleslist {
    border: 2px solid grey;
    transition: 2s;
}

.article {
    border-bottom: 2px solid grey;
    overflow: hidden;
}

.articletitle {
    padding: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.articletitletitle {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 600;
}

.articletitletitle > span {
    font-weight: 400;
}

.articletitledate {
    float: right;
}

.articletext {
    max-height: 0;
    padding: 1rem;
    padding-top: 0;
    padding-bottom: 0;
    transition: .1s;
}

.shownarticle .articletext {
    max-height: 22rem;
    padding-bottom: .5rem;
}

.articletext p {
    max-height: 18rem;
    overflow: hidden;
}

.article:last-child {
    border-bottom: none;
}

.shownarticle .articletitletitle {
    white-space: unset;
    overflow: visible;
}

input[type=text], input[type=password], textarea {
    border: 2px solid grey;
    padding: .5rem;
    margin-top: .5rem;
    display: block;
    width: 100%;
    resize: none;
}

textarea {
    height: 300px;
    font-size: 16px;
}

.formerror {
    color: red;
    margin-top: .5rem;
}

.formsuccess {
    color: green;
    margin-top: .5rem;
}

.formwrapper {
    width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.formwrapper.wideformwrapper {
    width: 800px;
}

.formwrapper.verywideformwrapper {
    width: 1200px;
}

.logoutbutton {
    position: absolute;
    top: 4rem;
    left: 200px;
    margin-top: 0;
}
